home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #6
/
Amiga Plus CD - 2004 - No. 06.iso
/
AmigaPlus
/
Begleitmaterial
/
50Tools
/
Grafik
/
PerfectPaint
/
rexx
/
bridge
/
MkAnimPict.rx
< prev
next >
Wrap
Text File
|
2001-08-09
|
692b
|
52 lines
/* arexx Script
Make anim with pictures
*/
options results
parse ARG Port b
ADDRESS value Port
pp_AnimGui 1
if result<0 then
do
EXIT
end
pp_AskMultiFile 'Load*Pictures'
count=result
pp_Progresstext 'Ld*Pictures'
file="Ram:MultiFile"
IF OPEN("g",file,"read") then DO
file=READLN("g")
pp_Load file
pp_MakeAnim count
pp_CountFrames
count=result
Do i=1 to count-1
pp_Progress i count-1
pp_FastNextFrame
file=READLN("g")
pp_Bload file
pp_GetWidthB
w=result
IF w=0 then DO
EXIT
END
pp_GetHeightB
h=result
x=w/2
y=h/2
pp_Plot x y
END
CALL close(file)
pp_GotoFrame 1
END
pp_Progressclr
pp_FreeBrush
End